package com.volkanic.views.stages;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.ui.Image;

/**
 * Created by Lucas on 24/07/2014.
 */
public class WallpaperStage extends MainStage {

    /**
     * Basic wallpaper implementation with a chosen texture
     * @param pathToTexture
     */
    public WallpaperStage(String pathToTexture) {
        // Setup up the picture
        Texture night = new Texture(Gdx.files.internal(pathToTexture));

        Image nightSky = new Image(night);
        nightSky.setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());

        nightSky.setCenterPosition(X_CENTER, Y_CENTER);
        this.addActor(nightSky);
    }
}
